﻿<UserControl x:Class="Aeon.Presentation.NumericUpDown"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" x:Name="root"
             d:DesignHeight="25" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBox Name="valueText" Grid.RowSpan="2" Text="0" IsReadOnly="{Binding IsReadOnly, ElementName=root}" TextAlignment="Right" KeyDown="valueText_KeyDown" TextChanged="valueText_TextChanged" />
        <Button Name="upButton" Grid.Column="1" Width="20" Click="upButton_Click">
            <Polygon Points="3,0 6,3 0,3" Fill="Black" Stroke="Black" />
        </Button>
        <Button Name="downButton" Grid.Column="1" Grid.Row="1" Click="downButton_Click">
            <Polygon Points="0,0 3,3 6,0" Fill="Black" Stroke="Black" />
        </Button>
    </Grid>
</UserControl>
